package com.one.consumer;

import android.app.Application;

import com.one.common.CommonApp;
import com.tencent.bugly.crashreport.CrashReport;

import org.xutils.x;

import static com.one.common.config.MyContact.BUGLY;

/**
 * creator: zhulunjun
 * time:    2018/8/3
 * describe: 入口
 */
public class App extends Application {

    private static Application sApp;

    public static Application getInstance() {
        return sApp;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        CommonApp.init(this);
        x.Ext.init(this);
        x.Ext.setDebug(BuildConfig.DEBUG);

        sApp = this;
        CrashReport.initCrashReport(sApp, BUGLY, true);
    }
}
